<form name = "product" method = "post" action = "{$action}">
    <table class = "unocart">
        <tr>
            <td colspan="2">
                <span class = "unocart_name_prod">{$product->product_name}</span>
            </td>
        </tr>
        <tr>
            <td width = "100" style = "vertical-align:top">
                <img id = "main_image" src = "{$image_product_path}/{if $product->product_full_image}{$product->product_full_image}{else}{$no_image}{/if}" alt = "{$alt_main_image}" />
            </td>
	        <td class = "unocart_img_description" style = "padding-left: 10px;">
            {if count($images) + count($videos) > 1}
	            {foreach from=$images item=image name=imagefor}
	                <img class = "unocart_img_thumb" src = "{$image_product_path}/{$image->image_thumb}" alt = "{$product->product_name}" onclick = "showImage('{$image_product_path}/{$image->image_name}')" />
	            {/foreach}
            {/if}
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <div class = "unocart_prod_description">
                    {$product->product_description}
	            </div>
                <br />
                <div class = "unocart_prod_attributes">
                {if $attributes}
                    <table class = "unocart" style  = "margin:0">
                    {foreach from=$attributes item = attribut}
                        <tr>
                            <td width = "50">
                                {$attribut->attr_name}:
			                </td>
                            <td>
                                {$attribut->selects}
			                </td>
                        </tr>
                    {/foreach}
                    </table>
                {/if}
	            </div>
	            <div>
	   	            {$smarty.const._UNOCART_PRICE}: <span class = "brown">{format_price price=$product->product_price}</span>
	            </div>
	            {if $product->product_special_type}
	                <table id = "music_album">
				        <tr class = "bold">
					        <td width = "20" class = "right">
						        #
					        </td>
					        <td width = "450" style = "padding-left:10px">
						        {$smarty.const._UNOCART_SPECIAL_MUSIC_TITLE}
					        </td>
					        <td width = "40">
						        {$smarty.const._UNOCART_SPECIAL_MUSIC_TIME}
					        </td>
					        <td>
						        <img src = "{$image_path}/headphones.gif" alt = "headphones" />
					        </td>
				        </tr>
			            {foreach from=$product->special_type item=sp_type name=music}
			            <tr>
			   		        <td class = "right">
					            <b>{$sp_type->field_1}.</b>
					        </td>
			   		        <td style = "padding-left:10px">
					            {$sp_type->field_2}
					        </td>
			   		        <td>
					           {$sp_type->field_3}
					        </td>
			   		        <td>
					           <a id = "music_{$smarty.foreach.music.iteration}" href = "{$other_files_path}/{$sp_type->field_4}" onclick = "playMusic(this.id); return false;"/>
					   		        {if $sp_type->field_4}<img class = "href" src = "{$image_path}/play.gif" alt = "{$sp_type->field_4}" />{/if}
					           </a>
					        </td>
			            </tr>
			            {/foreach}
	                </table>
	            {/if}
                <br />
                <div class = "unocart_prod_description">
                    {if $product->product_quantity <= 0}{$product->product_availability}{/if}
	            </div>
	        </td>
	    </tr>
        <tr>
            <td width = "50%" class = "left">
                <img class = "href" src = "{$image_path}/back.gif" alt = "back" onclick = "history.go(-1)" />
	        </td>
	        <td width = "50%" class = "right">
                <input type = "image" name = "add_to_cart" src = "{$image_path}/buy.gif" style = "margin-right:3px"/>
                <input type = "hidden" name = "quantity" id = "quantity" value = "1" />
                <input type = "hidden" name = "option" value = "com_unocart" />
                <input type = "hidden" name = "product_id" value = "{$product->product_id}" />
                <input type = "hidden" name = "task" value = "add_to_cart" />
                <input type = "hidden" name = "Itemid" value = "{$Itemid}" />
                {if $enable_wishlist}
                    <input type = "submit" name = "add_to_wishlist" class = "button" value = "{$smarty.const._UNOCART_ADD_TO_WISHLIST}" />
                {/if}
	        </td>
        </tr>
    </table>
</form>
{if count ($related_prod)}
    <hr class = "unocart_line" />
    <hr class = "unocart_line" />
    {$smarty.const._UNOCART_RELATED_PRODUCTS}
    <table class = "unocart">
        <tr>
        {foreach from=$related_prod item=product name=prodfor}
            <td width = "{math equation="100/count" count=$count_product_to_row}%" class = "unocart_related">
	            <p>
	                <a href="{$product->product_link}">{$product->product_name}</a>
	            </p>
	            <p>
	                <a href="{$product->product_link}">
	                    <img class = "unocart_img" src = "{$image_product_path}/{if $product->product_thumb_image}{$product->product_thumb_image}{else}{$no_image}{/if}" alt="{$product->product_name}" />
	                </a>
	            </p>
	            <p>
	                <span style="color: #AA25FF">{format_price price = $product->product_price}</span>
	            </p>
            </td>
            {if $smarty.foreach.prodfor.iteration % $count_related_prod == 0}
                </tr>
                <tr>
	        {/if}
        {/foreach}
        </tr>
    </table>
{/if}
{if $product->can_demo_download}
    <a onclick = "this.target = '_blank'" href = "index2.php?option=com_unocart&task=d_demo&product_id={$product->product_id}&no_html=1">
        {$smarty.const._UNOCART_DOWNLOAD_DEMO}
    </a>
{/if}